package com.usian.article.feign;


import com.usian.model.behavior.ApBehaviorEntry;
import com.usian.model.behavior.ApFollowBehavior;
import com.usian.model.behavior.ApLikesBehavior;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "leadnews-behavior")
public interface BehaviorFeign {
    @GetMapping("/api/v1/entry/find/{userId}/{equipmentId}")
    public ApBehaviorEntry findByUserIdOrEquipmentId(@PathVariable Integer userId,
                                                     @PathVariable(value = "equipmentId",required = false) Integer equipmentId);
    @GetMapping("/api/v1/followbehavior/findFollowBehavior/{entryId}/{articleId}/{followId}")
    public List<ApFollowBehavior> findFollowBehavior(@PathVariable Integer entryId,
                                                     @PathVariable Long articleId,
                                                     @PathVariable Integer followId);
    @GetMapping("/api/v1/likes_behavior/findLike/{entryId}/{articleId}")
    public ApLikesBehavior findLike(@PathVariable Integer entryId,
                                    @PathVariable Long articleId);
}
